package com.icoolkj.ms.pay.mapper;

import com.icoolkj.ms.api.pay.model.PayOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 支付订单数据层
 */
@Mapper
public interface PayOrderMapper {
    
    /**
     * 根据订单号查询支付订单
     */
    PayOrder selectByOrderNo(@Param("orderNo") String orderNo);

    /**
     * 根据支付平台订单号查询支付订单
     */
    PayOrder selectByPayOrderNo(@Param("payOrderNo") String payOrderNo);

    /**
     * 更新支付订单状态
     */
    int updateStatus(@Param("orderNo") String orderNo, 
                    @Param("status") String status,
                    @Param("payOrderNo") String payOrderNo);
} 